<?php
if(!defined('IN_XLR')) {
	exit('Access Denied');
}

//上传照片
function api_member_list($apiReq){
	global $_SGLOBAL, $_CONFIG;

	$page_no = 1;
	if(isset($apiReq['page_no'])){
		$page_no = $apiReq['page_no'];
	}
	$pagesize = 10 ;
  	$rs_number = ($page_no - 1) * $pagesize ;


	$sql = "select a.* from member a where a.nickname!='' order by a.id desc limit $rs_number,$pagesize";
	$member_list = get_db()->get_results($sql);
	$count = count($member_list);

	//输出
	$apiOut["returncode"] = "0";
    $apiOut["member_list"] = $member_list;
    $apiOut["count"] = $count;
    $apiOut["page_no"] = $page_no;
  
	return $apiOut;
}
